package com.yihuan.mapper;

import com.yihuan.entity.ShoppingEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Author:梦醒
 * Date: 2022/4/24 15:54
 * Dream:
 * 信言不美，美言不信。
 * 善者不辩，辩者不善。
 * 知者不博，博者不知。
 * Function:
 */
@Mapper
public interface ShoppingMapper {
    /**
     * 注册购物车信息
     *
     * @param shoppingEntity
     * @return
     */
    
    int insertShoppingByShoppingData(ShoppingEntity shoppingEntity);
    
    /**
     * 更改购物车信息删除状态
     *
     * @param shoppingEntity
     * @return
     */
    int updateShoppingByShoppingDeleteState(ShoppingEntity shoppingEntity);
    
    /**
     * 购物车分页查询数据
     *
     * @param shoppingEntity
     * @return
     */
    List<ShoppingEntity> findShoppingByShoppingList(ShoppingEntity shoppingEntity);
    
    /**
     * 购物车统计分页查询数据
     *
     * @param shoppingEntity
     * @return
     */
    int countShoppingList(ShoppingEntity shoppingEntity);
    
    /**
     * 购物车公司分页查询数据
     *
     * @param shoppingEntity
     * @return
     */
    List<ShoppingEntity> findShoppingByShoppingCompanyList(ShoppingEntity shoppingEntity);
    
    /**
     * 查询数据 按编号
     *
     * @param shoppingEntity
     * @return
     */
    
    List<ShoppingEntity> findShoppingByShoppingID(ShoppingEntity shoppingEntity);
}
